#include <iostream>

using namespace std;


int testSum()
{
  int ret = 0;
  for(int i = 1; i <= 20; ++i)
    ret += i;
  return ret;
}


int main()
{
    for(int i = 0; i < 10; ++i)
      cout << i << " ";
    
    cout << endl;
    cout << testSum() << endl;
    return 0;
}
